package moe.oil.exception.professional;

import moe.oil.exception.ErrorType;
import moe.oil.exception.ServiceException;
import org.springframework.http.HttpStatus;

/**
 * Created with IntelliJ IDEA.
 * author: 紫月
 * Date: 2022/04/19 17:48
 * Description:
 *
 * @author - -
 */
public class ProfessionalIdNullException extends ServiceException {
    public ProfessionalIdNullException(Long id) {
        super(
                String.format("Professional %s 为空", id),
                HttpStatus.NOT_FOUND,
                ErrorType.INVALID,
                id
        );
    }
}
